#!/bin/sh

cd "`dirname "$0"`"

alert --info "Please insert an empty floppy disk" "Make it a boot floppy!" "Forget it" >/dev/null
[ $? -ne 0 ] && exit 2

IMAGE=/dev/disk/floppy/raw

dd if=FLOPPY.IMG of=$IMAGE bs=72k

if [ $? != 0 ] ; then
	alert --stop "Cannot copy boot image to floppy disk" "Sniff" >/dev/null
	exit 2;
else
	alert --info "Boot floppy successfully created" "Fine" >/dev/null
	exit 0;
fi
